package com.sunkq.redis.utils;

import redis.clients.jedis.Jedis;

public class JedisUtils {
    public static volatile Jedis instance;

    public static Jedis getJedis() {
        if (instance == null) {
            synchronized (Jedis.class) {
                if (instance == null) {
                    instance = new Jedis("192.168.1.120", 6379);
                }
            }
        }
        return instance;
    }
}
